#!/usr/bin/env php
<?php

$config = require __DIR__. '/dist/config.inc';

$data = var_export($config, true);
$data = preg_replace(
        array( "/[\n\r]+/i", "/Array[\s]*\(/","/=>[\s]+/i" ),
        array( "\n", 'Array (',"=> " ),
        $data
    );
$data = <<<EOF
<?php \n

return $data;

EOF;

file_put_contents('config.min.inc', $data);

echo "\n Successful!";